package ${package.Mapper};

import ${package.Entity}.${entity};
import ${package.Entity}.${entity}ParamDto;
import org.apache.ibatis.annotations.*;
import java.util.List;

/**
 * <p>
 * ${table.comment!} 数据访问器
 * </p>
 *
 * @author ${author}
 * @since ${date}
 */
@Mapper
public interface ${table.mapperName} {

	<#--${entity} find${entity}ById(@Param(value = "<#list table.fields as field><#if field.keyFlag == true>${field.propertyName}</#if></#list>") <#list table.fields as field><#if field.keyFlag == true>${field.columnType?lower_case?cap_first}</#if></#list> id);-->
	<#--@Select("SELECT * FROM TABLE_NAME WHERE ID=#{id}")-->
	${entity} get${entity}ById(Integer <#list table.fields as field><#if field.keyFlag == true>${field.propertyName}</#if></#list>);

	<#--List<${entity}> list${entity}(Map<String, Object> map);-->
	List<${entity}> list${entity}(${entity} param);

	List<${entity}> pageList${entity}(${entity} param);

	Integer add${entity}(${entity} ${table.entityPath});

	Integer upd${entity}(${entity} ${table.entityPath});

	Integer del${entity}(Integer <#list table.fields as field><#if field.keyFlag == true>${field.propertyName}</#if></#list>);

	<#--/**
	* 根据id物理删除${entity}
	*/
	Integer delete${entity}ById(@Param(value = "<#list table.fields as field><#if field.keyFlag == true>${field.propertyName}</#if></#list>") Long id);-->

}
